<#include "../../page.ftl" />
<#include "../../display.ftl" />
<table class="table table-datatable table-gray check_table">
    <thead>
    <tr>
        <th style="width: 35px;"><input id="checkAll" type="checkbox" value=""></th>
        <th>卡号</th>
        <th>客户姓名</th>
        <th>类别</th>
        <th>产品名称</th>
        <th>渠道</th>
        <th>下单日期</th>
        <th>开卡日期</th>
        <th>到期日期</th>
        <th>引荐人</th>
        <th>促会人</th>
        <th>分管人</th>
        <th>副会</th>
        <th>操作</th>
    </tr>
    </thead>
    <tbody>
    <#if ykManagesTable.rows??>
        <#list ykManagesTable.rows as ykManage>
        <tr>
            <td><input name="ids" type="checkbox" value="${ykManage.id?c}"></td>
            <td>${ykManage.cardId!''}</td>
            <td>${ykManage.customerName !''}</td>
            <td>
                <@display list=vipTypeList value="${ykManage.vipType!''}"/>
            </td>
            <td>${ykManage.productName!''}</td>
            <td>
                <@display list=channelTypeList value="${ykManage.channelType!''}"/>
            </td>
            <td>${(ykManage.billTime?string("yyyy-MM-dd"))!''}</td>
            <td>${(ykManage.startDate?string("yyyy-MM-dd"))!''}</td>
            <td>${(ykManage.endDate?string("yyyy-MM-dd"))!''}</td>
            <td>
                <#if ykManage.healthYj??>
                    <#list ykManage.healthYj?split(",") as values >
                        <#list usersList as user>
                            <#if user.loginName == "${values!''}">

                            ${user.userName},
                            </#if>
                        </#list>
                    </#list>
                </#if>
            <#--${ykManage.healthYj!''}-->
            </td>
            <td>
                <#if ykManage.healthCh??>
                    <#list ykManage.healthCh?split(",") as values >
                        <#list usersList as user>
                            <#if user.loginName == "${values!''}">

                            ${user.userName},
                            </#if>
                        </#list>
                    </#list>
                </#if>
            </td>
            <td>${ykManage.userNameFg!''}</td>
            <td>${ykManage.vipFh!''}</td>

            <td>
                <a class="btn btn-green btn-radio nopadding" onclick="return popAddOrModify(${ykManage.id?c});"
                   title="编辑"><i class="fa fa-edit"></i></a>
        </tr>
        </#list>
    </#if>
    </tbody>
</table>
<#if ykManagesTable??>
    <@page table=ykManagesTable formId="search_ykManage_table"/>
</#if>